package com.leyou.wareHouse.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author cyb
 * @since 2022-07-28
 */
@Getter
@Setter
@ToString
  @TableName("mall_goods")
@ApiModel(value = "MallGoods对象", description = "商品表")
public class MallGoods implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("商品id")
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("品牌id")
      private Integer brandId;

      @ApiModelProperty("分类id")
      private Integer typeId;

      @ApiModelProperty("编号")
      private String number;

      @ApiModelProperty("名称")
      private String name;

      @ApiModelProperty("单位")
      private String unit;

      @ApiModelProperty("介绍")
      private String introduce;

      @ApiModelProperty("价格")
      private BigDecimal price;

      @ApiModelProperty("会员价格")
      private BigDecimal memberPrice;

      @ApiModelProperty("积分")
      private Integer integral;

      @ApiModelProperty("成长值")
      private Integer growth;

      @ApiModelProperty("货号")
      private String articleNo;

      @ApiModelProperty("已经购买数量")
      private Integer buyCount;

      @ApiModelProperty("库存")
      private Integer stock;

      @ApiModelProperty("预警库存")
      private Integer stockWarning;

      @ApiModelProperty("每个用户限购数量(0-无限)")
      private Integer quota;

      @ApiModelProperty("物流(1-普通，2-门店自提，3-国外直邮)")
      private Integer logistics;

      @ApiModelProperty("状态(0-未上架 1-已上架)")
      private Boolean state;

      @ApiModelProperty("服务保障(1-七天无理由退货，2-包邮，3-包税)")
      private Integer guarantee;

      @ApiModelProperty("促销状态(0-未开启 1-已开启)")
      private Boolean promotionState;

      @ApiModelProperty("促销开始时间")
      private LocalDateTime promotionStartTime;

      @ApiModelProperty("促销结束时间")
      private LocalDateTime promotionEndTime;

      @ApiModelProperty("促销价格")
      private BigDecimal promotionPrice;

      @ApiModelProperty("添加时间")
      private LocalDateTime insertTime;

      @ApiModelProperty("修改时间")
      private LocalDateTime modifiedTime;

      @ApiModelProperty("删除标记")
      private Integer deleted;


}
